package Action;

import PO.CutOffDatePage;
import PO.DanShangPage;
import com.epwk.action.Action;
import com.epwk.action.JSExecutor;
import com.epwk.tools.DateFormat;
import org.openqa.selenium.By;
import Action.*;

/**
 * Created by Administrator on 2016/11/24.
 */
public class DanShang {

    public static void danShang(int cash,int pnum,int day){


        Action.click(DanShangPage.model_xs);
        Action.sendkeys(DanShangPage.cash_xs,String.valueOf(cash));
        Action.click(DanShangPage.dangshang);

//        选择入围人数
        SelectedNum.selectedNum(pnum);

//        设置截止时间

//        CutOffDate.cutOffDate(day,DateFormat.COMMON_DATE_FORMAT);
        Action.clear(CutOffDatePage.CutOffDate_xs);
        Action.sendkeys(CutOffDatePage.CutOffDate_xs,DateFormat.beforeORLateDate(day,DateFormat.COMMON_DATE_FORMAT));

    }

}
